package common

const (
	RECRUIT_TOPIC = "recruit"

	SCHOICE_TYPE_C = "单选题" //单选题
	MCHOICE_TYPE_C = "多选题" //多选题
	CHECK_TYPE_C   = "判断题" //判断题
	FILL_TYPE_C    = "填空题" //填空题
	BRIEF_TYPE_C   = "简答题" //简答题
	AUDIO_TYPE_C   = "音频题" //音频题

	SCHOICE_TYPE = "single_choice" //单选题
	MCHOICE_TYPE = "multi_choice"  //多选题
	CHECK_TYPE   = "check"         //判断题
	FILL_TYPE    = "fill"          //填空题
	BRIEF_TYPE   = "brief"         //简答题
	AUDIO_TYPE   = "audio"         //音频题
)

const (
	PLACE_HOLDER = "?" //占位符
	SPLIT        = "`" //分隔符
)

//审批状态
const (
	APPROVAL_FAIL    = 1 //审批未通过
	APPROVAL_SUCCESS = 2 //审批通过
	APPROVAL_ING     = 3 //审批中
	APPROVAL_REVOKE  = 4 //撤销
)

//审批类型
const (
	APPROVAL_NORMAL = 1 //通用审批
	APPROVAL_SYSTEM = 2 //系统审批
)

//字段类型
const (
	TEXT     = "text"     //文本
	TEXTAREA = "textarea" //多行文本
	DATE     = "date"     //日期
	NUMBER   = "number"   //数字
	PIC      = "pic"      //图片
	RANGE    = "range"    //范围
	KV       = "kv"       //数据字典
)

//题型中文标识
var QuestionTypeMap map[string]string = map[string]string{
	SCHOICE_TYPE: SCHOICE_TYPE_C,
	MCHOICE_TYPE: MCHOICE_TYPE_C,
	CHECK_TYPE:   CHECK_TYPE_C,
	FILL_TYPE:    FILL_TYPE_C,
	BRIEF_TYPE:   BRIEF_TYPE_C,
	AUDIO_TYPE:   AUDIO_TYPE_C,
}

//题型英文标识
var QuestionTypeEnMap map[string]string = map[string]string{
	SCHOICE_TYPE_C: SCHOICE_TYPE,
	MCHOICE_TYPE_C: MCHOICE_TYPE,
	CHECK_TYPE_C:   CHECK_TYPE,
	FILL_TYPE_C:    FILL_TYPE,
	BRIEF_TYPE_C:   BRIEF_TYPE,
	AUDIO_TYPE_C:   AUDIO_TYPE,
}
